package com.sam.spring.chapter1.helloworld;

public class HelloImpl2 implements HelloAPI {

	private String message;

	public HelloImpl2() {
		this.message = "Hello Spring! 使用默认构造参数";
	}

	public HelloImpl2(String message) {
		this.message = message + "使用有参数构造参数";
	}

	public void sayHello() {
		System.out.println(message);
	}

}
